package com.zzptc.lifuyong.exam;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import java.util.Timer;
import java.util.TimerTask;

public class Main2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        final Intent a=new Intent(this,MainActivity.class);
        Timer b=new Timer();
        TimerTask c=new TimerTask() {
            @Override
            public void run() {
                startActivity(a);
            }
        };
        b.schedule(c,1000*3);
    }
}
